package com.google.incomplete.validators;

import com.opensymphony.xwork2.validator.ValidationException;
import com.opensymphony.xwork2.validator.validators.FieldValidatorSupport;

public class MyValidator extends FieldValidatorSupport {

    public void validate(Object obj) throws  ValidationException{
        String fieldName = this.getFieldName();
        Object value = this.getFieldValue(fieldName,obj);
        System.out.println("shit");
        addFieldError(fieldName,obj);
    }

}
